

class Message {
  Message({
      String? role, 
      String? content, 
      String? id,}){
    _role = role;
    _content = content;
    _id = id;
}

  Message.fromJson(dynamic json) {
    _role = json['role'];
    _content = json['content'];
    _id = json['id'];
  }
  String? _role;
  String? _content;
  String? _id;

  bool displayComplete = false;

  String? get role => _role;
  String? get content => _content;
  set content(String? value) {
    _content = value;
  }
  String? get id => _id;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['role'] = _role;
    map['content'] = _content;
    map['id'] = _id;
    return map;
  }

}